<template>
  <button @click="toggle">显示隐藏图片</button>
  <img v-show="show" alt="Vue logo" src="./assets/vue.svg" />
  <hr />
  计数器：{{ count }} <button @click="increment">累加</button>
</template>
<script>
import { useCount } from './composable/count';
import { useShow } from './composable/show';
export default {
  setup() {
    // 显示隐藏
    const { show, toggle } = useShow();
    // 计数器
    const { count, increment } = useCount();

    return { show, toggle, count, increment }

  }
};
</script>


